
let baseUrl = ''
let imgBaseUrl = ''
let oauth2Url = ''
if (process.env.NODE_ENV === 'development') {
  baseUrl = '/api'
  imgBaseUrl = 'https://kaifang.lanaocn.com/dressmaker/resource/client.do?method=read&resourceId='
  oauth2Url = 'http://ouhuang.nat200.top/%23/login'
} else if (process.env.NODE_ENV === 'production') {
  baseUrl = 'https://kaifang.lanaocn.com/dressmaker'
  imgBaseUrl = 'https://kaifang.lanaocn.com/dressmaker/resource/client.do?method=read&resourceId='
  oauth2Url = 'https://kaifang.lanaocn.com/dressmaker/clientpages/%23/login'
}

const baseConfig = {
  appId: 'wx158d12df64f0a0e1',
  oauth2Url: oauth2Url
}

const redirectUrl = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${baseConfig.appId}&redirect_uri=${baseConfig.oauth2Url}&response_type=code&scope=snsapi_userinfo&&state=success#wechat_redirect`
export {
  baseUrl,
  imgBaseUrl,
  redirectUrl
}
